<?php

namespace App;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;

class Share extends Model
{
    protected $guarded=[];
    public function user()
    {
        return $this->belongsTo(User::class,'uid','id');
    }
    public function share()
    {
        return $this->belongsTo(User::class,'share_uid','id');
    }
    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
